put FilePath("", "Choose a file please.") into fileName
if fileName = empty then exit mouseUp
set cursor to watch
put FileVersion(fileName, "nodialog:errGlobal") into fVersion
if errGlobal Γëá empty then
answer "Error: ΓÇ£" & errGlobal & "ΓÇ¥"
put empty into errGlobal
else
if fVersion Γëá empty then
answer "The version info for ΓÇ£" & fileName & "ΓÇ¥ is:" & return & return & fVersion
else
answer "No version info for ΓÇ£" & fileName & "ΓÇ¥."
end if
end if
end mouseUp
-- part contents for background part 38
----- text -----
21/50
-- part contents for background part 20
----- text -----
FileVersion - An XFCN to return the version string of a specified file
FileVersion(pathname, <"noDialog:errorGlobal">)
This XFCN will return the version string from the specified file. This is the string you see when selecting "Get Info" from the Finder's File menu. Nothing is returned if there is no version information.